const Sequelize = require('sequelize');
const db = require('../config/db');

// 创建model
var UserModel = db.define('user', {
    userName: {
        type: Sequelize.INTEGER,
        field: 'username'
    },
    sex: {
        type: Sequelize.STRING,
        field: 'sex'
    },
    age: {
        type: Sequelize.INTEGER,
        field: 'age'
    },
    city: {
        type: Sequelize.STRING,
        field: 'city'
    },
    job: {
        type: Sequelize.STRING,
        field: 'job'
    }
})

module.exports = UserModel